<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../day06/cssReset.css">
    <link rel="stylesheet" href="./card.css">
    <script src="./data.js"></script>
</head>

<body>
    <div class="part">
        <div class="center">
            <img src="./img1/l3.jpg" alt="" class="l3">
            <ul id="mycard">
                <li>
                </li>
            </ul>
        </div>
    </div>
</body>
<script>
    var mycard = document.getElementById('mycard');
    var str = '';
    for (var i = 0; i < data.length; i++) {
        str += ` <li>
                    <img src="./img1/poke/${data[i].id}.png" alt="">
                    <p>${data[i].name}</p>
                </li>`
    }
    mycard.innerHTML = str;
</script>

</html>